package com.jichaoyun.model.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName valve
 */
@TableName(value ="valve")
@Data
public class Valve implements Serializable {
    /**
     * 
     */
    @ExcelProperty(value = "阀门编号",index = 0)
    @TableId(type = IdType.AUTO)
    private Integer valveId;

    /**
     * 阀门名称
     */
    @ExcelProperty(value = "阀门名称",index = 1)
    private String vName;

    /**
     * 阀门状态，0到1的小数
     */
    @ExcelProperty(value = "阀门状态",index = 8)
    private byte vStatus;

    /**
     * GPRS编号
     */
    @ExcelProperty(value = "GPRS编号",index = 2)
    private String vGprs;

    /**
     * 通讯地址
     */
    @ExcelProperty(value = "通讯地址",index = 3)
    private int vAddress;

    /**
     * 通讯类型
     */
    @ExcelProperty(value = "通讯类型",index = 4)
    private String vCom;

    /**
     * 开度上限
     */
    @ExcelProperty(value = "开度上限",index = 5)
    private Float vOpenMax;

    /**
     * 开度下限
     */
    @ExcelProperty(value = "开度下限",index = 6)
    private Float vOpenMin;

    @ExcelProperty(value = "所属用户",index = 7)
    private String userName;

    @ExcelProperty(value = "控制器输出电流值",index = 8)
    private double outputCurrent;

    @ExcelProperty(value = "控制器输入电流值",index = 9)
    private double inputCurrent;

    /**
     * 电话号码
     */
    @ExcelIgnore
    private String tel;

    /**
     * 通讯ip
     */
    @ExcelIgnore
    private String comIp;

    /**
     * tcp端口
     */
    @ExcelIgnore
    private String tcpAddr;

    /**
     * udp端口
     */
    @ExcelIgnore
    private String udpAddr;


    /**
     * 采集周期，秒
     */
    @ExcelIgnore
    private Integer collectionCircle;

    /**
     * 存储周期，秒
     */
    @ExcelIgnore
    private Integer storageCircle;

    /**
     * 指令周期，秒
     */
    @ExcelIgnore
    private Integer instructCircle;
    /**
     * 1删除
     */
    @ExcelIgnore
    @TableLogic(value = "0",delval ="1")
    private Boolean isDeleted;

    @ExcelIgnore
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}